/**
 * 
 */
package rosetti.AR.dossier.premier;

import java.util.ArrayList;

import org.openintents.intents.WikitudePOI;
import android.content.Context;
import android.location.Location;

/**
 * @author Emmanuel
 *
 */
public class LesPOIs extends ArrayList<WikitudePOI> {

	private Location ici;
	private int radius;
	private Context context;
	
	public LesPOIs(Location ici, int radius,Context ctxt) {
		super();
		this.ici = ici;
		this.radius = radius;
		this.context=ctxt;
		
	}

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	public void addPOIs(WikitudePOI poi){
		this.add(poi);
	}

	public void populate(){
		Thread ajoutpois= new Thread(new Runnable() {
			
			@Override
			public void run() {
				// TODO Auto-generated method stub
				addAll(AR_premier.getPOISWiki2(ici,radius,context));
			}
		});
		ajoutpois.setPriority(Thread.MIN_PRIORITY);
		ajoutpois.start();
		
	}

}

